/*-----------------------------------------------------------------------------
 * @file   hal_trng.c
 * @brief  interface for true random generator module operations
 * @author WLH<wanglehui8357@163.com> Copyright (C) 2021~2099.
-----------------------------------------------------------------------------*/
#ifndef HAL_TRNG_H
#define HAL_TRNG_H

#include "globaldef.h"

BEGIN_DECLS

/*-----------------------------------------------------------------------------
 * public functions declaration
-----------------------------------------------------------------------------*/
/**
 * @brief      Initialize the True Random Number Generator (TRNG) hardware module
 * This function sets up the TRNG hardware module for generating random numbers.
 */
void hal_trng_init(void);
/**
 * @brief      Get a random byte from the TRNG
 * @return     A random byte generated by the TRNG
 */
U8   hal_trng_get_random(void);

END_DECLS

#endif